﻿using System.Collections.Generic;
using TradeHelp.Utilities;

namespace TradeHelp.MaterializedObjectViews
{
    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class MsgSequencer<T> : Sequencer<ViewMessage<T>>
    {
        public IEnumerable<ViewMessage<T>> Resequence(ViewMessageBurst<T> data)
        {
            Invariant.CheckIsNull(data, "data");
            return Resequence(data, data.ViewVersion, data.InitialBurst);
        }
    }
}
